{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제40_집_이민자_외국인지원\data\code_robustness.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 3 May 2025, 21:59:25

{com}. tsset id year
{res}{txt}{col 8}panel variable:  {res}id (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2005 to 2022, but with gaps
{txt}{col 17}delta:  {res}1 unit

{com}. xtreg environment i.immigration##i.homeownership ln_income education sex age marriage capital religion ideology, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}    13,470
{txt}Group variable: {res}id                              {txt}Number of groups  = {res}     5,826

{txt}R-sq:                                           Obs per group:
     within  = {res}0.0039                                         {txt}min = {res}         1
{txt}     between = {res}0.0544                                         {txt}avg = {res}       2.3
{txt}     overall = {res}0.0387                                         {txt}max = {res}         5

                                                {txt}Wald chi2({res}11{txt})     =  {res}   416.22
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              environment{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.immigration {c |}{col 27}{res}{space 2} .1605631{col 39}{space 2} .1473734{col 50}{space 1}    1.09{col 59}{space 3}0.276{col 67}{space 4}-.1282835{col 80}{space 3} .4494097
{txt}{space 10}1.homeownership {c |}{col 27}{res}{space 2}-.0104203{col 39}{space 2} .0184562{col 50}{space 1}   -0.56{col 59}{space 3}0.572{col 67}{space 4}-.0465938{col 80}{space 3} .0257533
{txt}{space 25} {c |}
immigration#homeownership {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.1884709{col 39}{space 2} .1910034{col 50}{space 1}   -0.99{col 59}{space 3}0.324{col 67}{space 4}-.5628308{col 80}{space 3} .1858889
{txt}{space 25} {c |}
{space 16}ln_income {c |}{col 27}{res}{space 2}-.0927542{col 39}{space 2} .0134382{col 50}{space 1}   -6.90{col 59}{space 3}0.000{col 67}{space 4}-.1190926{col 80}{space 3}-.0664158
{txt}{space 16}education {c |}{col 27}{res}{space 2}-.0811241{col 39}{space 2}  .010171{col 50}{space 1}   -7.98{col 59}{space 3}0.000{col 67}{space 4}-.1010588{col 80}{space 3}-.0611893
{txt}{space 22}sex {c |}{col 27}{res}{space 2} .0421756{col 39}{space 2} .0189976{col 50}{space 1}    2.22{col 59}{space 3}0.026{col 67}{space 4}  .004941{col 80}{space 3} .0794102
{txt}{space 22}age {c |}{col 27}{res}{space 2}-.0065198{col 39}{space 2} .0079923{col 50}{space 1}   -0.82{col 59}{space 3}0.415{col 67}{space 4}-.0221845{col 80}{space 3} .0091449
{txt}{space 17}marriage {c |}{col 27}{res}{space 2}-.0088149{col 39}{space 2} .0203593{col 50}{space 1}   -0.43{col 59}{space 3}0.665{col 67}{space 4}-.0487184{col 80}{space 3} .0310886
{txt}{space 18}capital {c |}{col 27}{res}{space 2}-.0084125{col 39}{space 2} .0189559{col 50}{space 1}   -0.44{col 59}{space 3}0.657{col 67}{space 4}-.0455653{col 80}{space 3} .0287404
{txt}{space 17}religion {c |}{col 27}{res}{space 2}-.0388441{col 39}{space 2}  .017014{col 50}{space 1}   -2.28{col 59}{space 3}0.022{col 67}{space 4}-.0721911{col 80}{space 3}-.0054972
{txt}{space 17}ideology {c |}{col 27}{res}{space 2} .0523304{col 39}{space 2} .0086306{col 50}{space 1}    6.06{col 59}{space 3}0.000{col 67}{space 4} .0354148{col 80}{space 3} .0692461
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 3.436731{col 39}{space 2}  .117857{col 50}{space 1}   29.16{col 59}{space 3}0.000{col 67}{space 4} 3.205736{col 80}{space 3} 3.667727
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res} .40156052
                  {txt}sigma_e {c |} {res} .83254585
                      {txt}rho {c |} {res} .18873358{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}. 
. 
. 
. margins immigration, at(homeownership =(0(1)1))
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}    13,470
{txt}Model VCE{col 14}: {res}Conventional

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:homeownership}{space 3}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:homeownership}{space 3}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}     Margin{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
_at#immigration {c |}
{space 11}1 0  {c |}{col 17}{res}{space 2} 2.604086{col 29}{space 2} .0149223{col 40}{space 1}  174.51{col 49}{space 3}0.000{col 57}{space 4} 2.574838{col 70}{space 3} 2.633333
{txt}{space 11}1 1  {c |}{col 17}{res}{space 2} 2.764649{col 29}{space 2} .1467731{col 40}{space 1}   18.84{col 49}{space 3}0.000{col 57}{space 4} 2.476979{col 70}{space 3} 3.052319
{txt}{space 11}2 0  {c |}{col 17}{res}{space 2} 2.593665{col 29}{space 2} .0111417{col 40}{space 1}  232.79{col 49}{space 3}0.000{col 57}{space 4} 2.571828{col 70}{space 3} 2.615503
{txt}{space 11}2 1  {c |}{col 17}{res}{space 2} 2.565757{col 29}{space 2}  .131205{col 40}{space 1}   19.56{col 49}{space 3}0.000{col 57}{space 4}   2.3086{col 70}{space 3} 2.822915
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. marginsplot

{text}{p 2 6 2}Variables that uniquely identify margins: homeownership immigration{p_end}
{res}
{com}. 
. 
. 
. xtreg environment i.immigration##c.ln_house_price ln_income education sex age marriage capital religion ideology, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}    12,268
{txt}Group variable: {res}id                              {txt}Number of groups  = {res}     5,423

{txt}R-sq:                                           Obs per group:
     within  = {res}0.0046                                         {txt}min = {res}         1
{txt}     between = {res}0.0561                                         {txt}avg = {res}       2.3
{txt}     overall = {res}0.0393                                         {txt}max = {res}         5

                                                {txt}Wald chi2({res}11{txt})     =  {res}   389.64
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                 environment{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      z{col 62}   P>|z|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.immigration {c |}{col 30}{res}{space 2} .2658263{col 42}{space 2} .5776928{col 53}{space 1}    0.46{col 62}{space 3}0.645{col 70}{space 4}-.8664308{col 83}{space 3} 1.398083
{txt}{space 14}ln_house_price {c |}{col 30}{res}{space 2}-.0064052{col 42}{space 2} .0070727{col 53}{space 1}   -0.91{col 62}{space 3}0.365{col 70}{space 4}-.0202674{col 83}{space 3}  .007457
{txt}{space 28} {c |}
immigration#c.ln_house_price {c |}
{space 26}1  {c |}{col 30}{res}{space 2}-.0251335{col 42}{space 2} .0664903{col 53}{space 1}   -0.38{col 62}{space 3}0.705{col 70}{space 4}-.1554521{col 83}{space 3} .1051851
{txt}{space 28} {c |}
{space 19}ln_income {c |}{col 30}{res}{space 2}-.0891787{col 42}{space 2} .0146827{col 53}{space 1}   -6.07{col 62}{space 3}0.000{col 70}{space 4}-.1179562{col 83}{space 3}-.0604012
{txt}{space 19}education {c |}{col 30}{res}{space 2}-.0836181{col 42}{space 2} .0107715{col 53}{space 1}   -7.76{col 62}{space 3}0.000{col 70}{space 4}-.1047298{col 83}{space 3}-.0625063
{txt}{space 25}sex {c |}{col 30}{res}{space 2} .0411731{col 42}{space 2} .0197057{col 53}{space 1}    2.09{col 62}{space 3}0.037{col 70}{space 4} .0025506{col 83}{space 3} .0797956
{txt}{space 25}age {c |}{col 30}{res}{space 2}-.0030461{col 42}{space 2} .0084117{col 53}{space 1}   -0.36{col 62}{space 3}0.717{col 70}{space 4}-.0195328{col 83}{space 3} .0134405
{txt}{space 20}marriage {c |}{col 30}{res}{space 2} -.013115{col 42}{space 2} .0213996{col 53}{space 1}   -0.61{col 62}{space 3}0.540{col 70}{space 4}-.0550573{col 83}{space 3} .0288274
{txt}{space 21}capital {c |}{col 30}{res}{space 2}-.0031288{col 42}{space 2} .0196855{col 53}{space 1}   -0.16{col 62}{space 3}0.874{col 70}{space 4}-.0417116{col 83}{space 3}  .035454
{txt}{space 20}religion {c |}{col 30}{res}{space 2}-.0449604{col 42}{space 2}  .017641{col 53}{space 1}   -2.55{col 62}{space 3}0.011{col 70}{space 4}-.0795361{col 83}{space 3}-.0103847
{txt}{space 20}ideology {c |}{col 30}{res}{space 2} .0521573{col 42}{space 2} .0089422{col 53}{space 1}    5.83{col 62}{space 3}0.000{col 70}{space 4}  .034631{col 83}{space 3} .0696837
{txt}{space 23}_cons {c |}{col 30}{res}{space 2} 3.457931{col 42}{space 2} .1229704{col 53}{space 1}   28.12{col 62}{space 3}0.000{col 70}{space 4} 3.216914{col 83}{space 3} 3.698949
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                     sigma_u {c |} {res} .40613927
                     {txt}sigma_e {c |} {res} .82140779
                         {txt}rho {c |} {res} .19644753{txt}   (fraction of variance due to u_i)
{hline 29}{c BT}{hline 64}

{com}. 
. 
. 
. margins immigration, at(ln_house_price=(4(1)13))
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}    12,268
{txt}Model VCE{col 14}: {res}Conventional

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}11}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}12}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}13}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}     Margin{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
_at#immigration {c |}
{space 10} 1 0  {c |}{col 17}{res}{space 2} 2.620958{col 29}{space 2} .0368315{col 40}{space 1}   71.16{col 49}{space 3}0.000{col 57}{space 4}  2.54877{col 70}{space 3} 2.693147
{txt}{space 10} 1 1  {c |}{col 17}{res}{space 2} 2.786251{col 29}{space 2} .3187651{col 40}{space 1}    8.74{col 49}{space 3}0.000{col 57}{space 4} 2.161483{col 70}{space 3} 3.411019
{txt}{space 10} 2 0  {c |}{col 17}{res}{space 2} 2.614553{col 29}{space 2} .0300457{col 40}{space 1}   87.02{col 49}{space 3}0.000{col 57}{space 4} 2.555665{col 70}{space 3} 2.673442
{txt}{space 10} 2 1  {c |}{col 17}{res}{space 2} 2.754712{col 29}{space 2} .2569395{col 40}{space 1}   10.72{col 49}{space 3}0.000{col 57}{space 4}  2.25112{col 70}{space 3} 3.258304
{txt}{space 10} 3 0  {c |}{col 17}{res}{space 2} 2.608148{col 29}{space 2} .0234302{col 40}{space 1}  111.32{col 49}{space 3}0.000{col 57}{space 4} 2.562226{col 70}{space 3}  2.65407
{txt}{space 10} 3 1  {c |}{col 17}{res}{space 2} 2.723173{col 29}{space 2} .1980533{col 40}{space 1}   13.75{col 49}{space 3}0.000{col 57}{space 4} 2.334996{col 70}{space 3} 3.111351
{txt}{space 10} 4 0  {c |}{col 17}{res}{space 2} 2.601743{col 29}{space 2} .0171828{col 40}{space 1}  151.42{col 49}{space 3}0.000{col 57}{space 4} 2.568065{col 70}{space 3}  2.63542
{txt}{space 10} 4 1  {c |}{col 17}{res}{space 2} 2.691635{col 29}{space 2} .1457147{col 40}{space 1}   18.47{col 49}{space 3}0.000{col 57}{space 4} 2.406039{col 70}{space 3}  2.97723
{txt}{space 10} 5 0  {c |}{col 17}{res}{space 2} 2.595338{col 29}{space 2} .0118982{col 40}{space 1}  218.13{col 49}{space 3}0.000{col 57}{space 4} 2.572017{col 70}{space 3} 2.618658
{txt}{space 10} 5 1  {c |}{col 17}{res}{space 2} 2.660096{col 29}{space 2} .1097313{col 40}{space 1}   24.24{col 49}{space 3}0.000{col 57}{space 4} 2.445027{col 70}{space 3} 2.875165
{txt}{space 10} 6 0  {c |}{col 17}{res}{space 2} 2.588932{col 29}{space 2} .0093773{col 40}{space 1}  276.08{col 49}{space 3}0.000{col 57}{space 4} 2.570553{col 70}{space 3} 2.607312
{txt}{space 10} 6 1  {c |}{col 17}{res}{space 2} 2.628557{col 29}{space 2} .1079334{col 40}{space 1}   24.35{col 49}{space 3}0.000{col 57}{space 4} 2.417012{col 70}{space 3} 2.840103
{txt}{space 10} 7 0  {c |}{col 17}{res}{space 2} 2.582527{col 29}{space 2} .0115908{col 40}{space 1}  222.81{col 49}{space 3}0.000{col 57}{space 4}  2.55981{col 70}{space 3} 2.605245
{txt}{space 10} 7 1  {c |}{col 17}{res}{space 2} 2.597018{col 29}{space 2} .1416291{col 40}{space 1}   18.34{col 49}{space 3}0.000{col 57}{space 4} 2.319431{col 70}{space 3} 2.874606
{txt}{space 10} 8 0  {c |}{col 17}{res}{space 2} 2.576122{col 29}{space 2} .0167572{col 40}{space 1}  153.73{col 49}{space 3}0.000{col 57}{space 4} 2.543278{col 70}{space 3} 2.608965
{txt}{space 10} 8 1  {c |}{col 17}{res}{space 2}  2.56548{col 29}{space 2} .1930504{col 40}{space 1}   13.29{col 49}{space 3}0.000{col 57}{space 4} 2.187108{col 70}{space 3} 2.943852
{txt}{space 10} 9 0  {c |}{col 17}{res}{space 2} 2.569717{col 29}{space 2} .0229632{col 40}{space 1}  111.91{col 49}{space 3}0.000{col 57}{space 4}  2.52471{col 70}{space 3} 2.614724
{txt}{space 10} 9 1  {c |}{col 17}{res}{space 2} 2.533941{col 29}{space 2} .2515524{col 40}{space 1}   10.07{col 49}{space 3}0.000{col 57}{space 4} 2.040907{col 70}{space 3} 3.026975
{txt}{space 10}10 0  {c |}{col 17}{res}{space 2} 2.563311{col 29}{space 2}  .029561{col 40}{space 1}   86.71{col 49}{space 3}0.000{col 57}{space 4} 2.505373{col 70}{space 3}  2.62125
{txt}{space 10}10 1  {c |}{col 17}{res}{space 2} 2.502402{col 29}{space 2}  .313192{col 40}{space 1}    7.99{col 49}{space 3}0.000{col 57}{space 4} 1.888557{col 70}{space 3} 3.116247
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. marginsplot, recastci(rarea)

{text}{p 2 6 2}Variables that uniquely identify margins: ln_house_price immigration{p_end}
{res}
{com}. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. xtreg culture_art i.immigration##i.homeownership ln_income education sex age marriage capital religion ideology, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}    13,470
{txt}Group variable: {res}id                              {txt}Number of groups  = {res}     5,826

{txt}R-sq:                                           Obs per group:
     within  = {res}0.0007                                         {txt}min = {res}         1
{txt}     between = {res}0.0359                                         {txt}avg = {res}       2.3
{txt}     overall = {res}0.0220                                         {txt}max = {res}         5

                                                {txt}Wald chi2({res}11{txt})     =  {res}   215.21
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              culture_art{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.immigration {c |}{col 27}{res}{space 2} .0469218{col 39}{space 2} .1629307{col 50}{space 1}    0.29{col 59}{space 3}0.773{col 67}{space 4}-.2724166{col 80}{space 3} .3662601
{txt}{space 10}1.homeownership {c |}{col 27}{res}{space 2} .0111835{col 39}{space 2} .0199493{col 50}{space 1}    0.56{col 59}{space 3}0.575{col 67}{space 4}-.0279163{col 80}{space 3} .0502834
{txt}{space 25} {c |}
immigration#homeownership {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0384033{col 39}{space 2} .2064667{col 50}{space 1}    0.19{col 59}{space 3}0.852{col 67}{space 4} -.366264{col 80}{space 3} .4430705
{txt}{space 25} {c |}
{space 16}ln_income {c |}{col 27}{res}{space 2}-.0479666{col 39}{space 2} .0144502{col 50}{space 1}   -3.32{col 59}{space 3}0.001{col 67}{space 4}-.0762884{col 80}{space 3}-.0196447
{txt}{space 16}education {c |}{col 27}{res}{space 2}-.0775155{col 39}{space 2} .0113595{col 50}{space 1}   -6.82{col 59}{space 3}0.000{col 67}{space 4}-.0997797{col 80}{space 3}-.0552513
{txt}{space 22}sex {c |}{col 27}{res}{space 2}-.0079843{col 39}{space 2} .0214828{col 50}{space 1}   -0.37{col 59}{space 3}0.710{col 67}{space 4}-.0500898{col 80}{space 3} .0341212
{txt}{space 22}age {c |}{col 27}{res}{space 2} .0080368{col 39}{space 2}  .008711{col 50}{space 1}    0.92{col 59}{space 3}0.356{col 67}{space 4}-.0090364{col 80}{space 3} .0251101
{txt}{space 17}marriage {c |}{col 27}{res}{space 2} .0553536{col 39}{space 2} .0223714{col 50}{space 1}    2.47{col 59}{space 3}0.013{col 67}{space 4} .0115064{col 80}{space 3} .0992008
{txt}{space 18}capital {c |}{col 27}{res}{space 2} .0054152{col 39}{space 2} .0213378{col 50}{space 1}    0.25{col 59}{space 3}0.800{col 67}{space 4} -.036406{col 80}{space 3} .0472365
{txt}{space 17}religion {c |}{col 27}{res}{space 2} .0142579{col 39}{space 2}  .018392{col 50}{space 1}    0.78{col 59}{space 3}0.438{col 67}{space 4}-.0217897{col 80}{space 3} .0503055
{txt}{space 17}ideology {c |}{col 27}{res}{space 2} .0314848{col 39}{space 2} .0090636{col 50}{space 1}    3.47{col 59}{space 3}0.001{col 67}{space 4} .0137205{col 80}{space 3} .0492491
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 3.585886{col 39}{space 2} .1265144{col 50}{space 1}   28.34{col 59}{space 3}0.000{col 67}{space 4} 3.337923{col 80}{space 3}  3.83385
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res} .53879779
                  {txt}sigma_e {c |} {res} .84249298
                      {txt}rho {c |} {res} .29027476{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}. 
. 
. 
. margins immigration, at(homeownership =(0(1)1))
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}    13,470
{txt}Model VCE{col 14}: {res}Conventional

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:homeownership}{space 3}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:homeownership}{space 3}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}     Margin{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
_at#immigration {c |}
{space 11}1 0  {c |}{col 17}{res}{space 2}  3.16853{col 29}{space 2} .0164079{col 40}{space 1}  193.11{col 49}{space 3}0.000{col 57}{space 4} 3.136371{col 70}{space 3} 3.200689
{txt}{space 11}1 1  {c |}{col 17}{res}{space 2} 3.215452{col 29}{space 2} .1622656{col 40}{space 1}   19.82{col 49}{space 3}0.000{col 57}{space 4} 2.897417{col 70}{space 3} 3.533487
{txt}{space 11}2 0  {c |}{col 17}{res}{space 2} 3.179714{col 29}{space 2} .0124351{col 40}{space 1}  255.71{col 49}{space 3}0.000{col 57}{space 4} 3.155341{col 70}{space 3} 3.204086
{txt}{space 11}2 1  {c |}{col 17}{res}{space 2} 3.265039{col 29}{space 2} .1448412{col 40}{space 1}   22.54{col 49}{space 3}0.000{col 57}{space 4} 2.981155{col 70}{space 3} 3.548922
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. marginsplot

{text}{p 2 6 2}Variables that uniquely identify margins: homeownership immigration{p_end}
{res}
{com}. 
. 
. 
. xtreg culture_art i.immigration##c.ln_house_price ln_income education sex age marriage capital religion ideology, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}    12,268
{txt}Group variable: {res}id                              {txt}Number of groups  = {res}     5,423

{txt}R-sq:                                           Obs per group:
     within  = {res}0.0007                                         {txt}min = {res}         1
{txt}     between = {res}0.0365                                         {txt}avg = {res}       2.3
{txt}     overall = {res}0.0217                                         {txt}max = {res}         5

                                                {txt}Wald chi2({res}11{txt})     =  {res}   201.80
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                 culture_art{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      z{col 62}   P>|z|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.immigration {c |}{col 30}{res}{space 2} .8112508{col 42}{space 2} .6291123{col 53}{space 1}    1.29{col 62}{space 3}0.197{col 70}{space 4}-.4217866{col 83}{space 3} 2.044288
{txt}{space 14}ln_house_price {c |}{col 30}{res}{space 2}-.0022655{col 42}{space 2}  .007707{col 53}{space 1}   -0.29{col 62}{space 3}0.769{col 70}{space 4} -.017371{col 83}{space 3} .0128399
{txt}{space 28} {c |}
immigration#c.ln_house_price {c |}
{space 26}1  {c |}{col 30}{res}{space 2}-.0880868{col 42}{space 2} .0723324{col 53}{space 1}   -1.22{col 62}{space 3}0.223{col 70}{space 4}-.2298557{col 83}{space 3} .0536821
{txt}{space 28} {c |}
{space 19}ln_income {c |}{col 30}{res}{space 2} -.043769{col 42}{space 2} .0158317{col 53}{space 1}   -2.76{col 62}{space 3}0.006{col 70}{space 4}-.0747985{col 83}{space 3}-.0127395
{txt}{space 19}education {c |}{col 30}{res}{space 2}-.0809502{col 42}{space 2} .0119699{col 53}{space 1}   -6.76{col 62}{space 3}0.000{col 70}{space 4}-.1044107{col 83}{space 3}-.0574897
{txt}{space 25}sex {c |}{col 30}{res}{space 2}-.0146486{col 42}{space 2} .0221072{col 53}{space 1}   -0.66{col 62}{space 3}0.508{col 70}{space 4} -.057978{col 83}{space 3} .0286807
{txt}{space 25}age {c |}{col 30}{res}{space 2} .0090447{col 42}{space 2} .0091773{col 53}{space 1}    0.99{col 62}{space 3}0.324{col 70}{space 4}-.0089424{col 83}{space 3} .0270319
{txt}{space 20}marriage {c |}{col 30}{res}{space 2} .0526542{col 42}{space 2} .0234908{col 53}{space 1}    2.24{col 62}{space 3}0.025{col 70}{space 4}  .006613{col 83}{space 3} .0986953
{txt}{space 21}capital {c |}{col 30}{res}{space 2} .0033886{col 42}{space 2} .0220099{col 53}{space 1}    0.15{col 62}{space 3}0.878{col 70}{space 4}-.0397501{col 83}{space 3} .0465272
{txt}{space 20}religion {c |}{col 30}{res}{space 2} .0061158{col 42}{space 2} .0191159{col 53}{space 1}    0.32{col 62}{space 3}0.749{col 70}{space 4}-.0313506{col 83}{space 3} .0435823
{txt}{space 20}ideology {c |}{col 30}{res}{space 2} .0297142{col 42}{space 2} .0094724{col 53}{space 1}    3.14{col 62}{space 3}0.002{col 70}{space 4} .0111487{col 83}{space 3} .0482797
{txt}{space 23}_cons {c |}{col 30}{res}{space 2} 3.603935{col 42}{space 2} .1327403{col 53}{space 1}   27.15{col 62}{space 3}0.000{col 70}{space 4} 3.343769{col 83}{space 3} 3.864101
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                     sigma_u {c |} {res} .52345371
                     {txt}sigma_e {c |} {res} .84508682
                         {txt}rho {c |} {res} .27728251{txt}   (fraction of variance due to u_i)
{hline 29}{c BT}{hline 64}

{com}. 
. 
. 
. margins immigration, at(ln_house_price=(4(1)13))
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}    12,268
{txt}Model VCE{col 14}: {res}Conventional

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 10}9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}11}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}12}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:ln_house_p~e}{space 4}{txt:=} {space 9}13}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}     Margin{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
_at#immigration {c |}
{space 10} 1 0  {c |}{col 17}{res}{space 2} 3.184295{col 29}{space 2} .0401904{col 40}{space 1}   79.23{col 49}{space 3}0.000{col 57}{space 4} 3.105523{col 70}{space 3} 3.263066
{txt}{space 10} 1 1  {c |}{col 17}{res}{space 2} 3.643198{col 29}{space 2}  .347835{col 40}{space 1}   10.47{col 49}{space 3}0.000{col 57}{space 4} 2.961454{col 70}{space 3} 4.324942
{txt}{space 10} 2 0  {c |}{col 17}{res}{space 2} 3.182029{col 29}{space 2} .0328151{col 40}{space 1}   96.97{col 49}{space 3}0.000{col 57}{space 4} 3.117713{col 70}{space 3} 3.246346
{txt}{space 10} 2 1  {c |}{col 17}{res}{space 2} 3.552846{col 29}{space 2}  .280809{col 40}{space 1}   12.65{col 49}{space 3}0.000{col 57}{space 4}  3.00247{col 70}{space 3} 4.103221
{txt}{space 10} 3 0  {c |}{col 17}{res}{space 2} 3.179764{col 29}{space 2} .0256357{col 40}{space 1}  124.04{col 49}{space 3}0.000{col 57}{space 4} 3.129519{col 70}{space 3} 3.230009
{txt}{space 10} 3 1  {c |}{col 17}{res}{space 2} 3.462494{col 29}{space 2} .2170979{col 40}{space 1}   15.95{col 49}{space 3}0.000{col 57}{space 4} 3.036989{col 70}{space 3} 3.887998
{txt}{space 10} 4 0  {c |}{col 17}{res}{space 2} 3.177498{col 29}{space 2}  .018877{col 40}{space 1}  168.33{col 49}{space 3}0.000{col 57}{space 4}   3.1405{col 70}{space 3} 3.214496
{txt}{space 10} 4 1  {c |}{col 17}{res}{space 2} 3.372141{col 29}{space 2}  .160694{col 40}{space 1}   20.98{col 49}{space 3}0.000{col 57}{space 4} 3.057187{col 70}{space 3} 3.687096
{txt}{space 10} 5 0  {c |}{col 17}{res}{space 2} 3.175233{col 29}{space 2} .0132019{col 40}{space 1}  240.51{col 49}{space 3}0.000{col 57}{space 4} 3.149357{col 70}{space 3} 3.201108
{txt}{space 10} 5 1  {c |}{col 17}{res}{space 2} 3.281789{col 29}{space 2} .1221754{col 40}{space 1}   26.86{col 49}{space 3}0.000{col 57}{space 4}  3.04233{col 70}{space 3} 3.521248
{txt}{space 10} 6 0  {c |}{col 17}{res}{space 2} 3.172967{col 29}{space 2} .0105372{col 40}{space 1}  301.12{col 49}{space 3}0.000{col 57}{space 4} 3.152314{col 70}{space 3}  3.19362
{txt}{space 10} 6 1  {c |}{col 17}{res}{space 2} 3.191437{col 29}{space 2} .1201846{col 40}{space 1}   26.55{col 49}{space 3}0.000{col 57}{space 4} 2.955879{col 70}{space 3} 3.426994
{txt}{space 10} 7 0  {c |}{col 17}{res}{space 2} 3.170702{col 29}{space 2} .0129063{col 40}{space 1}  245.67{col 49}{space 3}0.000{col 57}{space 4} 3.145406{col 70}{space 3} 3.195997
{txt}{space 10} 7 1  {c |}{col 17}{res}{space 2} 3.101084{col 29}{space 2} .1561252{col 40}{space 1}   19.86{col 49}{space 3}0.000{col 57}{space 4} 2.795084{col 70}{space 3} 3.407084
{txt}{space 10} 8 0  {c |}{col 17}{res}{space 2} 3.168436{col 29}{space 2} .0184637{col 40}{space 1}  171.60{col 49}{space 3}0.000{col 57}{space 4} 3.132248{col 70}{space 3} 3.204624
{txt}{space 10} 8 1  {c |}{col 17}{res}{space 2} 3.010732{col 29}{space 2} .2114688{col 40}{space 1}   14.24{col 49}{space 3}0.000{col 57}{space 4} 2.596261{col 70}{space 3} 3.425203
{txt}{space 10} 9 0  {c |}{col 17}{res}{space 2}  3.16617{col 29}{space 2} .0251801{col 40}{space 1}  125.74{col 49}{space 3}0.000{col 57}{space 4} 3.116818{col 70}{space 3} 3.215523
{txt}{space 10} 9 1  {c |}{col 17}{res}{space 2}  2.92038{col 29}{space 2} .2747295{col 40}{space 1}   10.63{col 49}{space 3}0.000{col 57}{space 4}  2.38192{col 70}{space 3} 3.458839
{txt}{space 10}10 0  {c |}{col 17}{res}{space 2} 3.163905{col 29}{space 2} .0323414{col 40}{space 1}   97.83{col 49}{space 3}0.000{col 57}{space 4} 3.100517{col 70}{space 3} 3.227293
{txt}{space 10}10 1  {c |}{col 17}{res}{space 2} 2.830027{col 29}{space 2} .3415358{col 40}{space 1}    8.29{col 49}{space 3}0.000{col 57}{space 4} 2.160629{col 70}{space 3} 3.499425
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. marginsplot, recastci(rarea)

{text}{p 2 6 2}Variables that uniquely identify margins: ln_house_price immigration{p_end}
{res}
{com}. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. 
. keep if immigration == 1
{txt}(288,070 observations deleted)

{com}. 
. logit homeownership ln_income education sex age marriage capital religion ideology

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-70.805659}  
Iteration 1:{space 3}log likelihood = {res: -54.10271}  
Iteration 2:{space 3}log likelihood = {res:-53.976108}  
Iteration 3:{space 3}log likelihood = {res:-53.975654}  
Iteration 4:{space 3}log likelihood = {res:-53.975654}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       103
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     33.66
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-53.975654{txt}{col 49}Pseudo R2{col 67}= {res}    0.2377

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}homeownership{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}ln_income {c |}{col 15}{res}{space 2} .4168823{col 27}{space 2} .3699509{col 38}{space 1}    1.13{col 47}{space 3}0.260{col 55}{space 4}-.3082082{col 68}{space 3} 1.141973
{txt}{space 4}education {c |}{col 15}{res}{space 2} .5271381{col 27}{space 2} .2633375{col 38}{space 1}    2.00{col 47}{space 3}0.045{col 55}{space 4} .0110061{col 68}{space 3}  1.04327
{txt}{space 10}sex {c |}{col 15}{res}{space 2} .4221915{col 27}{space 2} .6666666{col 38}{space 1}    0.63{col 47}{space 3}0.527{col 55}{space 4} -.884451{col 68}{space 3} 1.728834
{txt}{space 10}age {c |}{col 15}{res}{space 2} .0498469{col 27}{space 2}  .235669{col 38}{space 1}    0.21{col 47}{space 3}0.832{col 55}{space 4}-.4120558{col 68}{space 3} .5117496
{txt}{space 5}marriage {c |}{col 15}{res}{space 2} 1.885726{col 27}{space 2}  .618586{col 38}{space 1}    3.05{col 47}{space 3}0.002{col 55}{space 4} .6733196{col 68}{space 3} 3.098132
{txt}{space 6}capital {c |}{col 15}{res}{space 2}-.9935123{col 27}{space 2} .5672452{col 38}{space 1}   -1.75{col 47}{space 3}0.080{col 55}{space 4}-2.105293{col 68}{space 3}  .118268
{txt}{space 5}religion {c |}{col 15}{res}{space 2}-.2853602{col 27}{space 2} .5352524{col 38}{space 1}   -0.53{col 47}{space 3}0.594{col 55}{space 4}-1.334436{col 68}{space 3} .7637153
{txt}{space 5}ideology {c |}{col 15}{res}{space 2}-.1865742{col 27}{space 2}  .296633{col 38}{space 1}   -0.63{col 47}{space 3}0.529{col 55}{space 4}-.7679642{col 68}{space 3} .3948158
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-5.703774{col 27}{space 2}   3.3614{col 38}{space 1}   -1.70{col 47}{space 3}0.090{col 55}{space 4}  -12.292{col 68}{space 3} .8844486
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. psmatch2 homeownership ln_income education sex age marriage capital religion ideology, outcome(foreigner_right) neighbor(1)
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}        42
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     19.69
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0116
{txt}Log likelihood = {res}-18.835614{txt}{col 49}Pseudo R2{col 67}= {res}    0.3433

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}homeownership{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}ln_income {c |}{col 15}{res}{space 2}-.0204777{col 27}{space 2} .4113601{col 38}{space 1}   -0.05{col 47}{space 3}0.960{col 55}{space 4}-.8267287{col 68}{space 3} .7857733
{txt}{space 4}education {c |}{col 15}{res}{space 2} .4422848{col 27}{space 2} .3217975{col 38}{space 1}    1.37{col 47}{space 3}0.169{col 55}{space 4}-.1884267{col 68}{space 3} 1.072996
{txt}{space 10}sex {c |}{col 15}{res}{space 2}-1.144655{col 27}{space 2} 1.384231{col 38}{space 1}   -0.83{col 47}{space 3}0.408{col 55}{space 4}-3.857697{col 68}{space 3} 1.568387
{txt}{space 10}age {c |}{col 15}{res}{space 2}-.5619396{col 27}{space 2} .4323868{col 38}{space 1}   -1.30{col 47}{space 3}0.194{col 55}{space 4}-1.409402{col 68}{space 3}  .285523
{txt}{space 5}marriage {c |}{col 15}{res}{space 2} .8857688{col 27}{space 2}  .722833{col 38}{space 1}    1.23{col 47}{space 3}0.220{col 55}{space 4}-.5309579{col 68}{space 3} 2.302495
{txt}{space 6}capital {c |}{col 15}{res}{space 2}-1.175522{col 27}{space 2} .6814693{col 38}{space 1}   -1.72{col 47}{space 3}0.085{col 55}{space 4}-2.511178{col 68}{space 3}  .160133
{txt}{space 5}religion {c |}{col 15}{res}{space 2}-.7588918{col 27}{space 2} .6668161{col 38}{space 1}   -1.14{col 47}{space 3}0.255{col 55}{space 4}-2.065827{col 68}{space 3} .5480438
{txt}{space 5}ideology {c |}{col 15}{res}{space 2}-.1397195{col 27}{space 2} .3767188{col 38}{space 1}   -0.37{col 47}{space 3}0.711{col 55}{space 4}-.8780748{col 68}{space 3} .5986359
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.269406{col 27}{space 2} 4.128192{col 38}{space 1}    0.55{col 47}{space 3}0.583{col 55}{space 4}-5.821702{col 68}{space 3} 10.36051
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}{hline 28}{c TT}{hline 59}
        Variable     Sample {c |}    Treated     Controls   Difference         S.E.   T-stat
{hline 28}{c +}{hline 59}
 foreigner_right  Unmatched {c |}{res} 2.41666667   4.77777778  -2.36111111    .39730477    -5.94
{txt}{col 17}        ATT {c |}{res} 2.41666667        4.875  -2.45833333   .515480952    -4.77
{txt}{hline 28}{c +}{hline 59}
Note: S.E. does not take into account that the propensity score is estimated.

           {c |} psmatch2:
 psmatch2: {c |}   Common
 Treatment {c |}  support
assignment {c |} On suppor {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
 Untreated {c |}{res}        18 {txt}{c |}{res}        18 
{txt}   Treated {c |}{res}        24 {txt}{c |}{res}        24 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}        42 {txt}{c |}{res}        42 


{com}. 
. pstest ln_income education sex age marriage capital religion ideology

{txt}{hline 24}{c TT}{hline 26}{c TT}{hline 15}{c TT}{hline 10}
        {col 24} {c |}       Mean               {c |}     t-test    {c |}  V(T)/
Variable{col 24} {c |} Treated Control    %bias {c |}    t    p>|t| {c |}  V(C)
{hline 24}{c +}{hline 26}{c +}{hline 15}{c +}{hline 10}
ln_income             {col 24} {c |}{res} 8.4482   8.3332     14.7{txt} {c |}{res}   0.56  0.577{txt} {c |}{res}  0.79
{txt}education             {col 24} {c |}{res} 3.5833   2.2083    137.8{txt} {c |}{res}   6.62  0.000{txt} {c |}{res}  1.39
{txt}sex                   {col 24} {c |}{res} .91667   .95833    -13.7{txt} {c |}{res}  -0.59  0.561{txt} {c |}{res}     .
{txt}age                   {col 24} {c |}{res} 2.9167    3.125    -23.9{txt} {c |}{res}  -1.14  0.260{txt} {c |}{res}  2.99*
{txt}marriage              {col 24} {c |}{res} .91667     .875     10.0{txt} {c |}{res}   0.46  0.645{txt} {c |}{res}     .
{txt}capital               {col 24} {c |}{res} .16667     .125      9.4{txt} {c |}{res}   0.40  0.690{txt} {c |}{res}     .
{txt}religion              {col 24} {c |}{res} .45833   .08333     73.3{txt} {c |}{res}   3.16  0.003{txt} {c |}{res}     .
{txt}ideology              {col 24} {c |}{res}      3        3      0.0{txt} {c |}{res}   0.00  1.000{txt} {c |}{res}     .*
{txt}{hline 24}{c BT}{hline 26}{c BT}{hline 15}{c BT}{hline 10}
* if variance ratio outside [0.43; 2.31]

{hline 70}
Ps R2   LR chi2   p>chi2   MeanBias   MedBias      B       R     %Var 
{hline 70}
{res}0.510     33.91    0.000     35.4      14.2     231.2*    1.94{col 67} 50
{txt}{hline 70}
* if B>25%, R outside [0.5; 2]

{com}. 
. reg foreigner_right homeownership if _weight != .

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        30
{txt}{hline 13}{c +}{hline 34}   F(1, 28)        = {res}    10.77
{txt}       Model {c |} {res}       24.3         1        24.3   {txt}Prob > F        ={res}    0.0028
{txt}    Residual {c |} {res} 63.1666667        28  2.25595238   {txt}R-squared       ={res}    0.2778
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2520
{txt}       Total {c |} {res} 87.4666667        29  3.01609195   {txt}Root MSE        =   {res}  1.502

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}foreigner_r~t{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      t{col 47}   P>|t|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
homeownership {c |}{col 15}{res}{space 2}    -2.25{col 27}{space 2} .6855582{col 38}{space 1}   -3.28{col 47}{space 3}0.003{col 55}{space 4}-3.654302{col 68}{space 3}-.8456976
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 4.666667{col 27}{space 2} .6131819{col 38}{space 1}    7.61{col 47}{space 3}0.000{col 55}{space 4}  3.41062{col 68}{space 3} 5.922713
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. 
. 
. keep if immigration == 1
{txt}(0 observations deleted)

{com}. 
. logit homeownership ln_income education sex age marriage capital religion ideology

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-70.805659}  
Iteration 1:{space 3}log likelihood = {res: -54.10271}  
Iteration 2:{space 3}log likelihood = {res:-53.976108}  
Iteration 3:{space 3}log likelihood = {res:-53.975654}  
Iteration 4:{space 3}log likelihood = {res:-53.975654}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       103
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     33.66
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-53.975654{txt}{col 49}Pseudo R2{col 67}= {res}    0.2377

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}homeownership{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}ln_income {c |}{col 15}{res}{space 2} .4168823{col 27}{space 2} .3699509{col 38}{space 1}    1.13{col 47}{space 3}0.260{col 55}{space 4}-.3082082{col 68}{space 3} 1.141973
{txt}{space 4}education {c |}{col 15}{res}{space 2} .5271381{col 27}{space 2} .2633375{col 38}{space 1}    2.00{col 47}{space 3}0.045{col 55}{space 4} .0110061{col 68}{space 3}  1.04327
{txt}{space 10}sex {c |}{col 15}{res}{space 2} .4221915{col 27}{space 2} .6666666{col 38}{space 1}    0.63{col 47}{space 3}0.527{col 55}{space 4} -.884451{col 68}{space 3} 1.728834
{txt}{space 10}age {c |}{col 15}{res}{space 2} .0498469{col 27}{space 2}  .235669{col 38}{space 1}    0.21{col 47}{space 3}0.832{col 55}{space 4}-.4120558{col 68}{space 3} .5117496
{txt}{space 5}marriage {c |}{col 15}{res}{space 2} 1.885726{col 27}{space 2}  .618586{col 38}{space 1}    3.05{col 47}{space 3}0.002{col 55}{space 4} .6733196{col 68}{space 3} 3.098132
{txt}{space 6}capital {c |}{col 15}{res}{space 2}-.9935123{col 27}{space 2} .5672452{col 38}{space 1}   -1.75{col 47}{space 3}0.080{col 55}{space 4}-2.105293{col 68}{space 3}  .118268
{txt}{space 5}religion {c |}{col 15}{res}{space 2}-.2853602{col 27}{space 2} .5352524{col 38}{space 1}   -0.53{col 47}{space 3}0.594{col 55}{space 4}-1.334436{col 68}{space 3} .7637153
{txt}{space 5}ideology {c |}{col 15}{res}{space 2}-.1865742{col 27}{space 2}  .296633{col 38}{space 1}   -0.63{col 47}{space 3}0.529{col 55}{space 4}-.7679642{col 68}{space 3} .3948158
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-5.703774{col 27}{space 2}   3.3614{col 38}{space 1}   -1.70{col 47}{space 3}0.090{col 55}{space 4}  -12.292{col 68}{space 3} .8844486
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. psmatch2 homeownership ln_income education sex age marriage capital religion ideology, outcome(foreigner_support) neighbor(1)
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}        42
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     19.69
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0116
{txt}Log likelihood = {res}-18.835614{txt}{col 49}Pseudo R2{col 67}= {res}    0.3433

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}homeownership{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}ln_income {c |}{col 15}{res}{space 2}-.0204777{col 27}{space 2} .4113601{col 38}{space 1}   -0.05{col 47}{space 3}0.960{col 55}{space 4}-.8267287{col 68}{space 3} .7857733
{txt}{space 4}education {c |}{col 15}{res}{space 2} .4422848{col 27}{space 2} .3217975{col 38}{space 1}    1.37{col 47}{space 3}0.169{col 55}{space 4}-.1884267{col 68}{space 3} 1.072996
{txt}{space 10}sex {c |}{col 15}{res}{space 2}-1.144655{col 27}{space 2} 1.384231{col 38}{space 1}   -0.83{col 47}{space 3}0.408{col 55}{space 4}-3.857697{col 68}{space 3} 1.568387
{txt}{space 10}age {c |}{col 15}{res}{space 2}-.5619396{col 27}{space 2} .4323868{col 38}{space 1}   -1.30{col 47}{space 3}0.194{col 55}{space 4}-1.409402{col 68}{space 3}  .285523
{txt}{space 5}marriage {c |}{col 15}{res}{space 2} .8857688{col 27}{space 2}  .722833{col 38}{space 1}    1.23{col 47}{space 3}0.220{col 55}{space 4}-.5309579{col 68}{space 3} 2.302495
{txt}{space 6}capital {c |}{col 15}{res}{space 2}-1.175522{col 27}{space 2} .6814693{col 38}{space 1}   -1.72{col 47}{space 3}0.085{col 55}{space 4}-2.511178{col 68}{space 3}  .160133
{txt}{space 5}religion {c |}{col 15}{res}{space 2}-.7588918{col 27}{space 2} .6668161{col 38}{space 1}   -1.14{col 47}{space 3}0.255{col 55}{space 4}-2.065827{col 68}{space 3} .5480438
{txt}{space 5}ideology {c |}{col 15}{res}{space 2}-.1397195{col 27}{space 2} .3767188{col 38}{space 1}   -0.37{col 47}{space 3}0.711{col 55}{space 4}-.8780748{col 68}{space 3} .5986359
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.269406{col 27}{space 2} 4.128192{col 38}{space 1}    0.55{col 47}{space 3}0.583{col 55}{space 4}-5.821702{col 68}{space 3} 10.36051
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}{hline 28}{c TT}{hline 59}
        Variable     Sample {c |}    Treated     Controls   Difference         S.E.   T-stat
{hline 28}{c +}{hline 59}
foreigner_supp~t  Unmatched {c |}{res}       2.75   4.22222222  -1.47222222   .374201825    -3.93
{txt}{col 17}        ATT {c |}{res}       2.75   4.70833333  -1.95833333   .649406703    -3.02
{txt}{hline 28}{c +}{hline 59}
Note: S.E. does not take into account that the propensity score is estimated.

           {c |} psmatch2:
 psmatch2: {c |}   Common
 Treatment {c |}  support
assignment {c |} On suppor {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
 Untreated {c |}{res}        18 {txt}{c |}{res}        18 
{txt}   Treated {c |}{res}        24 {txt}{c |}{res}        24 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}        42 {txt}{c |}{res}        42 


{com}. 
. pstest ln_income education sex age marriage capital religion ideology

{txt}{hline 24}{c TT}{hline 26}{c TT}{hline 15}{c TT}{hline 10}
        {col 24} {c |}       Mean               {c |}     t-test    {c |}  V(T)/
Variable{col 24} {c |} Treated Control    %bias {c |}    t    p>|t| {c |}  V(C)
{hline 24}{c +}{hline 26}{c +}{hline 15}{c +}{hline 10}
ln_income             {col 24} {c |}{res} 8.4482   8.3332     14.7{txt} {c |}{res}   0.56  0.577{txt} {c |}{res}  0.79
{txt}education             {col 24} {c |}{res} 3.5833   2.2083    137.8{txt} {c |}{res}   6.62  0.000{txt} {c |}{res}  1.39
{txt}sex                   {col 24} {c |}{res} .91667   .95833    -13.7{txt} {c |}{res}  -0.59  0.561{txt} {c |}{res}     .
{txt}age                   {col 24} {c |}{res} 2.9167    3.125    -23.9{txt} {c |}{res}  -1.14  0.260{txt} {c |}{res}  2.99*
{txt}marriage              {col 24} {c |}{res} .91667     .875     10.0{txt} {c |}{res}   0.46  0.645{txt} {c |}{res}     .
{txt}capital               {col 24} {c |}{res} .16667     .125      9.4{txt} {c |}{res}   0.40  0.690{txt} {c |}{res}     .
{txt}religion              {col 24} {c |}{res} .45833   .08333     73.3{txt} {c |}{res}   3.16  0.003{txt} {c |}{res}     .
{txt}ideology              {col 24} {c |}{res}      3        3      0.0{txt} {c |}{res}   0.00  1.000{txt} {c |}{res}     .*
{txt}{hline 24}{c BT}{hline 26}{c BT}{hline 15}{c BT}{hline 10}
* if variance ratio outside [0.43; 2.31]

{hline 70}
Ps R2   LR chi2   p>chi2   MeanBias   MedBias      B       R     %Var 
{hline 70}
{res}0.510     33.91    0.000     35.4      14.2     231.2*    1.94{col 67} 50
{txt}{hline 70}
* if B>25%, R outside [0.5; 2]

{com}. 
. reg foreigner_support homeownership if _weight != .

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        30
{txt}{hline 13}{c +}{hline 34}   F(1, 28)        = {res}     4.87
{txt}       Model {c |} {res} 9.63333333         1  9.63333333   {txt}Prob > F        ={res}    0.0356
{txt}    Residual {c |} {res} 55.3333333        28  1.97619048   {txt}R-squared       ={res}    0.1483
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1179
{txt}       Total {c |} {res} 64.9666667        29  2.24022989   {txt}Root MSE        =   {res} 1.4058

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}foreigner_s~t{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      t{col 47}   P>|t|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
homeownership {c |}{col 15}{res}{space 2}-1.416667{col 27}{space 2} .6416435{col 38}{space 1}   -2.21{col 47}{space 3}0.036{col 55}{space 4}-2.731014{col 68}{space 3}-.1023196
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 4.166667{col 27}{space 2} .5739034{col 38}{space 1}    7.26{col 47}{space 3}0.000{col 55}{space 4} 2.991079{col 68}{space 3} 5.342254
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. 
. 
. 
. 
. 
. 
. 
. 
. keep if immigration == 1
{txt}(0 observations deleted)

{com}. 
. gen high_price = ln_house_price > 8.6995

. 
. logit high_price ln_income education sex age marriage capital religion ideology

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-71.272753}  
Iteration 1:{space 3}log likelihood = {res:-59.315173}  
Iteration 2:{space 3}log likelihood = {res:-59.206986}  
Iteration 3:{space 3}log likelihood = {res:-59.206866}  
Iteration 4:{space 3}log likelihood = {res:-59.206866}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       103
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     24.13
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0022
{txt}Log likelihood = {res}-59.206866{txt}{col 49}Pseudo R2{col 67}= {res}    0.1693

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  high_price{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ln_income {c |}{col 14}{res}{space 2} 1.424324{col 26}{space 2} .4263068{col 37}{space 1}    3.34{col 46}{space 3}0.001{col 54}{space 4}  .588778{col 67}{space 3}  2.25987
{txt}{space 3}education {c |}{col 14}{res}{space 2} .1153537{col 26}{space 2} .2428706{col 37}{space 1}    0.47{col 46}{space 3}0.635{col 54}{space 4} -.360664{col 67}{space 3} .5913714
{txt}{space 9}sex {c |}{col 14}{res}{space 2}-.0981682{col 26}{space 2} .6543821{col 37}{space 1}   -0.15{col 46}{space 3}0.881{col 54}{space 4}-1.380733{col 67}{space 3} 1.184397
{txt}{space 9}age {c |}{col 14}{res}{space 2} .2982511{col 26}{space 2} .2231743{col 37}{space 1}    1.34{col 46}{space 3}0.181{col 54}{space 4}-.1391625{col 67}{space 3} .7356648
{txt}{space 4}marriage {c |}{col 14}{res}{space 2} .4301221{col 26}{space 2} .5872961{col 37}{space 1}    0.73{col 46}{space 3}0.464{col 54}{space 4}-.7209571{col 67}{space 3} 1.581201
{txt}{space 5}capital {c |}{col 14}{res}{space 2} .5743189{col 26}{space 2} .5526681{col 37}{space 1}    1.04{col 46}{space 3}0.299{col 54}{space 4}-.5088907{col 67}{space 3} 1.657529
{txt}{space 4}religion {c |}{col 14}{res}{space 2}-.0688316{col 26}{space 2} .4947937{col 37}{space 1}   -0.14{col 46}{space 3}0.889{col 54}{space 4}-1.038609{col 67}{space 3} .9009462
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}  .018502{col 26}{space 2}  .282265{col 37}{space 1}    0.07{col 46}{space 3}0.948{col 54}{space 4}-.5347273{col 67}{space 3} .5717312
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-13.16242{col 26}{space 2} 3.722303{col 37}{space 1}   -3.54{col 46}{space 3}0.000{col 54}{space 4}  -20.458{col 67}{space 3}-5.866845
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. psmatch2 high_price ln_income education sex age marriage capital religion ideology,outcome(foreigner_right) neighbor(1)
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}        42
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}      4.58
{txt}{col 49}Prob > chi2{col 67}= {res}    0.8014
{txt}Log likelihood = {res}-25.083824{txt}{col 49}Pseudo R2{col 67}= {res}    0.0837

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  high_price{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ln_income {c |}{col 14}{res}{space 2} .6440358{col 26}{space 2} .4618563{col 37}{space 1}    1.39{col 46}{space 3}0.163{col 54}{space 4}-.2611859{col 67}{space 3} 1.549257
{txt}{space 3}education {c |}{col 14}{res}{space 2} .0958862{col 26}{space 2} .2657349{col 37}{space 1}    0.36{col 46}{space 3}0.718{col 54}{space 4}-.4249447{col 67}{space 3} .6167171
{txt}{space 9}sex {c |}{col 14}{res}{space 2} .0798072{col 26}{space 2} 1.045788{col 37}{space 1}    0.08{col 46}{space 3}0.939{col 54}{space 4}-1.969899{col 67}{space 3} 2.129513
{txt}{space 9}age {c |}{col 14}{res}{space 2} .2770495{col 26}{space 2} .3209427{col 37}{space 1}    0.86{col 46}{space 3}0.388{col 54}{space 4}-.3519867{col 67}{space 3} .9060856
{txt}{space 4}marriage {c |}{col 14}{res}{space 2}-.1873315{col 26}{space 2} .6709469{col 37}{space 1}   -0.28{col 46}{space 3}0.780{col 54}{space 4}-1.502363{col 67}{space 3}   1.1277
{txt}{space 5}capital {c |}{col 14}{res}{space 2}-.0425542{col 26}{space 2} .5797927{col 37}{space 1}   -0.07{col 46}{space 3}0.941{col 54}{space 4}-1.178927{col 67}{space 3} 1.093819
{txt}{space 4}religion {c |}{col 14}{res}{space 2} .1016464{col 26}{space 2} .5152983{col 37}{space 1}    0.20{col 46}{space 3}0.844{col 54}{space 4}-.9083198{col 67}{space 3} 1.111613
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0648402{col 26}{space 2} .3107151{col 37}{space 1}   -0.21{col 46}{space 3}0.835{col 54}{space 4}-.6738306{col 67}{space 3} .5441501
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-5.888328{col 26}{space 2} 4.077044{col 37}{space 1}   -1.44{col 46}{space 3}0.149{col 54}{space 4}-13.87919{col 67}{space 3}  2.10253
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}{hline 28}{c TT}{hline 59}
        Variable     Sample {c |}    Treated     Controls   Difference         S.E.   T-stat
{hline 28}{c +}{hline 59}
 foreigner_right  Unmatched {c |}{res} 2.62962963   4.86666667  -2.23703704   .438096644    -5.11
{txt}{col 17}        ATT {c |}{res} 2.62962963   4.85185185  -2.22222222   .353266014    -6.29
{txt}{hline 28}{c +}{hline 59}
Note: S.E. does not take into account that the propensity score is estimated.

           {c |} psmatch2:
 psmatch2: {c |}   Common
 Treatment {c |}  support
assignment {c |} On suppor {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
 Untreated {c |}{res}        15 {txt}{c |}{res}        15 
{txt}   Treated {c |}{res}        27 {txt}{c |}{res}        27 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}        42 {txt}{c |}{res}        42 


{com}. 
. pstest ln_income education sex age marriage capital religion ideology

{txt}{hline 24}{c TT}{hline 26}{c TT}{hline 15}{c TT}{hline 10}
        {col 24} {c |}       Mean               {c |}     t-test    {c |}  V(T)/
Variable{col 24} {c |} Treated Control    %bias {c |}    t    p>|t| {c |}  V(C)
{hline 24}{c +}{hline 26}{c +}{hline 15}{c +}{hline 10}
ln_income             {col 24} {c |}{res} 8.3765   8.4261     -6.1{txt} {c |}{res}  -0.33  0.744{txt} {c |}{res}  4.52*
{txt}education             {col 24} {c |}{res} 3.3333   3.4815    -14.3{txt} {c |}{res}  -0.56  0.576{txt} {c |}{res}  1.60
{txt}sex                   {col 24} {c |}{res} .88889        1    -38.2{txt} {c |}{res}  -1.80  0.077{txt} {c |}{res}     .
{txt}age                   {col 24} {c |}{res} 3.2593    2.963     32.9{txt} {c |}{res}   1.31  0.197{txt} {c |}{res}  4.19*
{txt}marriage              {col 24} {c |}{res} .74074   .88889    -32.8{txt} {c |}{res}  -1.40  0.167{txt} {c |}{res}     .
{txt}capital               {col 24} {c |}{res} .25926   .55556    -65.5{txt} {c |}{res}  -2.28  0.027{txt} {c |}{res}     .
{txt}religion              {col 24} {c |}{res} .51852   .11111     80.2{txt} {c |}{res}   3.52  0.001{txt} {c |}{res}     .
{txt}ideology              {col 24} {c |}{res}  3.037   2.6296     52.1{txt} {c |}{res}   1.93  0.059{txt} {c |}{res}  1.54
{txt}{hline 24}{c BT}{hline 26}{c BT}{hline 15}{c BT}{hline 10}
* if variance ratio outside [0.46; 2.19]

{hline 70}
Ps R2   LR chi2   p>chi2   MeanBias   MedBias      B       R     %Var 
{hline 70}
{res}0.198     13.98    0.052     40.3      35.6     114.0*    1.33{col 67} 50
{txt}{hline 70}
* if B>25%, R outside [0.5; 2]

{com}. 
. reg foreigner_right high_price if _weight != .

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        37
{txt}{hline 13}{c +}{hline 34}   F(1, 35)        = {res}    17.99
{txt}       Model {c |} {res} 37.6145145         1  37.6145145   {txt}Prob > F        ={res}    0.0002
{txt}    Residual {c |} {res} 73.1962963        35  2.09132275   {txt}R-squared       ={res}    0.3394
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3206
{txt}       Total {c |} {res} 110.810811        36  3.07807808   {txt}Root MSE        =   {res} 1.4461

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}foreigner~ht{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}high_price {c |}{col 14}{res}{space 2} -2.27037{col 26}{space 2} .5353398{col 37}{space 1}   -4.24{col 46}{space 3}0.000{col 54}{space 4}-3.357168{col 67}{space 3}-1.183573
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}      4.9{col 26}{space 2} .4573098{col 37}{space 1}   10.71{col 46}{space 3}0.000{col 54}{space 4} 3.971612{col 67}{space 3} 5.828388
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. 
. 
. keep if immigration == 1
{txt}(0 observations deleted)

{com}. 
. logit high_price ln_income education sex age marriage capital religion ideology

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-71.272753}  
Iteration 1:{space 3}log likelihood = {res:-59.315173}  
Iteration 2:{space 3}log likelihood = {res:-59.206986}  
Iteration 3:{space 3}log likelihood = {res:-59.206866}  
Iteration 4:{space 3}log likelihood = {res:-59.206866}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       103
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}     24.13
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0022
{txt}Log likelihood = {res}-59.206866{txt}{col 49}Pseudo R2{col 67}= {res}    0.1693

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  high_price{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ln_income {c |}{col 14}{res}{space 2} 1.424324{col 26}{space 2} .4263068{col 37}{space 1}    3.34{col 46}{space 3}0.001{col 54}{space 4}  .588778{col 67}{space 3}  2.25987
{txt}{space 3}education {c |}{col 14}{res}{space 2} .1153537{col 26}{space 2} .2428706{col 37}{space 1}    0.47{col 46}{space 3}0.635{col 54}{space 4} -.360664{col 67}{space 3} .5913714
{txt}{space 9}sex {c |}{col 14}{res}{space 2}-.0981682{col 26}{space 2} .6543821{col 37}{space 1}   -0.15{col 46}{space 3}0.881{col 54}{space 4}-1.380733{col 67}{space 3} 1.184397
{txt}{space 9}age {c |}{col 14}{res}{space 2} .2982511{col 26}{space 2} .2231743{col 37}{space 1}    1.34{col 46}{space 3}0.181{col 54}{space 4}-.1391625{col 67}{space 3} .7356648
{txt}{space 4}marriage {c |}{col 14}{res}{space 2} .4301221{col 26}{space 2} .5872961{col 37}{space 1}    0.73{col 46}{space 3}0.464{col 54}{space 4}-.7209571{col 67}{space 3} 1.581201
{txt}{space 5}capital {c |}{col 14}{res}{space 2} .5743189{col 26}{space 2} .5526681{col 37}{space 1}    1.04{col 46}{space 3}0.299{col 54}{space 4}-.5088907{col 67}{space 3} 1.657529
{txt}{space 4}religion {c |}{col 14}{res}{space 2}-.0688316{col 26}{space 2} .4947937{col 37}{space 1}   -0.14{col 46}{space 3}0.889{col 54}{space 4}-1.038609{col 67}{space 3} .9009462
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}  .018502{col 26}{space 2}  .282265{col 37}{space 1}    0.07{col 46}{space 3}0.948{col 54}{space 4}-.5347273{col 67}{space 3} .5717312
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-13.16242{col 26}{space 2} 3.722303{col 37}{space 1}   -3.54{col 46}{space 3}0.000{col 54}{space 4}  -20.458{col 67}{space 3}-5.866845
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. psmatch2 high_price ln_income education sex age marriage capital religion ideology,outcome(foreigner_support) neighbor(1)
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}        42
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}      4.58
{txt}{col 49}Prob > chi2{col 67}= {res}    0.8014
{txt}Log likelihood = {res}-25.083824{txt}{col 49}Pseudo R2{col 67}= {res}    0.0837

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  high_price{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ln_income {c |}{col 14}{res}{space 2} .6440358{col 26}{space 2} .4618563{col 37}{space 1}    1.39{col 46}{space 3}0.163{col 54}{space 4}-.2611859{col 67}{space 3} 1.549257
{txt}{space 3}education {c |}{col 14}{res}{space 2} .0958862{col 26}{space 2} .2657349{col 37}{space 1}    0.36{col 46}{space 3}0.718{col 54}{space 4}-.4249447{col 67}{space 3} .6167171
{txt}{space 9}sex {c |}{col 14}{res}{space 2} .0798072{col 26}{space 2} 1.045788{col 37}{space 1}    0.08{col 46}{space 3}0.939{col 54}{space 4}-1.969899{col 67}{space 3} 2.129513
{txt}{space 9}age {c |}{col 14}{res}{space 2} .2770495{col 26}{space 2} .3209427{col 37}{space 1}    0.86{col 46}{space 3}0.388{col 54}{space 4}-.3519867{col 67}{space 3} .9060856
{txt}{space 4}marriage {c |}{col 14}{res}{space 2}-.1873315{col 26}{space 2} .6709469{col 37}{space 1}   -0.28{col 46}{space 3}0.780{col 54}{space 4}-1.502363{col 67}{space 3}   1.1277
{txt}{space 5}capital {c |}{col 14}{res}{space 2}-.0425542{col 26}{space 2} .5797927{col 37}{space 1}   -0.07{col 46}{space 3}0.941{col 54}{space 4}-1.178927{col 67}{space 3} 1.093819
{txt}{space 4}religion {c |}{col 14}{res}{space 2} .1016464{col 26}{space 2} .5152983{col 37}{space 1}    0.20{col 46}{space 3}0.844{col 54}{space 4}-.9083198{col 67}{space 3} 1.111613
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0648402{col 26}{space 2} .3107151{col 37}{space 1}   -0.21{col 46}{space 3}0.835{col 54}{space 4}-.6738306{col 67}{space 3} .5441501
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-5.888328{col 26}{space 2} 4.077044{col 37}{space 1}   -1.44{col 46}{space 3}0.149{col 54}{space 4}-13.87919{col 67}{space 3}  2.10253
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}{hline 28}{c TT}{hline 59}
        Variable     Sample {c |}    Treated     Controls   Difference         S.E.   T-stat
{hline 28}{c +}{hline 59}
foreigner_supp~t  Unmatched {c |}{res} 2.85185185   4.33333333  -1.48148148   .390244551    -3.80
{txt}{col 17}        ATT {c |}{res} 2.85185185   4.44444444  -1.59259259   .358528643    -4.44
{txt}{hline 28}{c +}{hline 59}
Note: S.E. does not take into account that the propensity score is estimated.

           {c |} psmatch2:
 psmatch2: {c |}   Common
 Treatment {c |}  support
assignment {c |} On suppor {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
 Untreated {c |}{res}        15 {txt}{c |}{res}        15 
{txt}   Treated {c |}{res}        27 {txt}{c |}{res}        27 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}        42 {txt}{c |}{res}        42 


{com}. 
. pstest ln_income education sex age marriage capital religion ideology

{txt}{hline 24}{c TT}{hline 26}{c TT}{hline 15}{c TT}{hline 10}
        {col 24} {c |}       Mean               {c |}     t-test    {c |}  V(T)/
Variable{col 24} {c |} Treated Control    %bias {c |}    t    p>|t| {c |}  V(C)
{hline 24}{c +}{hline 26}{c +}{hline 15}{c +}{hline 10}
ln_income             {col 24} {c |}{res} 8.3765   8.4261     -6.1{txt} {c |}{res}  -0.33  0.744{txt} {c |}{res}  4.52*
{txt}education             {col 24} {c |}{res} 3.3333   3.4815    -14.3{txt} {c |}{res}  -0.56  0.576{txt} {c |}{res}  1.60
{txt}sex                   {col 24} {c |}{res} .88889        1    -38.2{txt} {c |}{res}  -1.80  0.077{txt} {c |}{res}     .
{txt}age                   {col 24} {c |}{res} 3.2593    2.963     32.9{txt} {c |}{res}   1.31  0.197{txt} {c |}{res}  4.19*
{txt}marriage              {col 24} {c |}{res} .74074   .88889    -32.8{txt} {c |}{res}  -1.40  0.167{txt} {c |}{res}     .
{txt}capital               {col 24} {c |}{res} .25926   .55556    -65.5{txt} {c |}{res}  -2.28  0.027{txt} {c |}{res}     .
{txt}religion              {col 24} {c |}{res} .51852   .11111     80.2{txt} {c |}{res}   3.52  0.001{txt} {c |}{res}     .
{txt}ideology              {col 24} {c |}{res}  3.037   2.6296     52.1{txt} {c |}{res}   1.93  0.059{txt} {c |}{res}  1.54
{txt}{hline 24}{c BT}{hline 26}{c BT}{hline 15}{c BT}{hline 10}
* if variance ratio outside [0.46; 2.19]

{hline 70}
Ps R2   LR chi2   p>chi2   MeanBias   MedBias      B       R     %Var 
{hline 70}
{res}0.198     13.98    0.052     40.3      35.6     114.0*    1.33{col 67} 50
{txt}{hline 70}
* if B>25%, R outside [0.5; 2]

{com}. 
. reg foreigner_support high_price if _weight != .

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        37
{txt}{hline 13}{c +}{hline 34}   F(1, 35)        = {res}    15.07
{txt}       Model {c |} {res} 22.3007007         1  22.3007007   {txt}Prob > F        ={res}    0.0004
{txt}    Residual {c |} {res} 51.8074074        35  1.48021164   {txt}R-squared       ={res}    0.3009
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2809
{txt}       Total {c |} {res} 74.1081081        36  2.05855856   {txt}Root MSE        =   {res} 1.2166

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}foreigner~rt{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}high_price {c |}{col 14}{res}{space 2}-1.748148{col 26}{space 2} .4503819{col 37}{space 1}   -3.88{col 46}{space 3}0.000{col 54}{space 4}-2.662472{col 67}{space 3}-.8338244
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}      4.6{col 26}{space 2} .3847352{col 37}{space 1}   11.96{col 46}{space 3}0.000{col 54}{space 4} 3.818946{col 67}{space 3} 5.381054
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제40_집_이민자_외국인지원\data\code_robustness.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 3 May 2025, 22:00:51
{txt}{.-}
{smcl}
{txt}{sf}{ul off}